package com.wxzz.elearing.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxzz.elearing.course.entity.CurriculumSection;
import com.wxzz.elearing.course.entity.WxUserCurriculum;
import com.wxzz.elearing.course.entity.WxUserCurriculumSection;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

/**
 * <p>
 * 课程章节 服务类
 * </p>
 *
 * @author
 * @since 2021-03-10
 */
public interface ICurriculumSectionService extends IService<CurriculumSection> {

    /**
     * 记录上次看的学习计划中的章节
     * @param wxUserId
     * @param curriculumSectionId
     * @return
     */
    ReturnVO setLastSee(Long wxUserId,Long curriculumSectionId);

    /**
     * 记录该用户对应课程的视频进度
     * @param wxUserId
     * @param seeTime
     * @return
     */
    ReturnVO setReturnSee(Long wxUserId,Long curriculumId,Long seeTime,Integer status);

    /**
     * 列出历史章节测评记录
     * @param wxUserId
     * @param curriculumSectionId
     * @return
     */
    ReturnVO<List<WxUserCurriculumSection>> listWxUserCurriculumHistory(Long wxUserId, Long curriculumSectionId);
}
